package com.ruoyi.wechat.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营地交流对象 c_communication
 * 
 * @author ruoyi
 * @date 2024-12-25
 */
public class Communication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 营地交流ID */
    private String communicationId;

    /** 用户ID */
    private String userId;

    /** 文字内容 */
    private String content;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date time;

    /** 交流图片 */
    private List<Image> imageList;

    public List<Image> getImageList() {
        return imageList;
    }

    public void setImageList(List<Image> imageList) {
        this.imageList = imageList;
    }

    /** 地址 */
    private String address;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setCommunicationId(String communicationId)
    {
        this.communicationId = communicationId;
    }

    public String getCommunicationId() 
    {
        return communicationId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("communicationId", getCommunicationId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("address", getAddress())
            .append("time", getTime())
            .append("imageList", getImageList())
            .toString();
    }
}
